package com.imooc.framework.stream;

import org.springframework.util.StringUtils;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class SortDemo {
    public static void main(String[] args) {
        Date date1 = new Date();
        Date date2 = new Date();



//        Stream<Employee> stream = Employee.getEmpList().stream();
////        List<Employee> result =  stream.sorted((o1, o2) -> o1.getName().compareTo(o2.getName())).collect(Collectors.toList());
//        List<Employee> result =  stream.sorted((o1, o2) -> o1.getAge().compareTo(o2.getAge())).collect(Collectors.toList());
//        result.forEach(System.out::println);
    }


}
